package com.sjs.flow.utils;

import cn.hutool.core.util.IdUtil;

import java.math.BigDecimal;

/**
 * @author uto_dev_008
 * @desc
 * @since 2022/7/27 10:48
 * Copyright (c) 2021 南京友拓信息技术有限公司 All rights reserved
 */
public class FlowIdUtil {
    private static final long workerId = 1L;
    private static final long datacenterId = 1L;

    public static String getSnowId() {
        return IdUtil.getSnowflake(workerId, datacenterId).nextIdStr();
    }
}
